<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>作品管理 - <?php echo $cfg_webname; ?></title>
<link href="templets/style/css/reset.css" rel="stylesheet" type="text/css">
<link href="templets/style/css/member.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="templets/js/j.js"></script>
<script type="text/javascript" src="templets/js/load.js"></script>
<script type="text/javascript" src="templets/js/leftmenu.js"></script>
<script type="text/javascript" language='javascript' src="templets/js/main.js"></script>
<script type="text/javascript" src="templets/js/checkSubmit.js"></script>
<script type="text/javascript">
  function viewArc(aid){
	  window.open("{dede:global.cfg_phpurl /}/view.php?aid="+aid);
  }
  function editArc(aid,channelid){
	  location = "archives_do.php?dopost=edit&channelid="+channelid+"&aid="+aid;
  }
  function delArc(aid){
	  if(window.confirm('你确定要删除这篇文档吗?')) location="archives_do.php?aid="+aid+"&dopost=delArc";
  }
  
function go_jump2(url,page,max){
	var g = /^[1-9]*[1-9][0-9]*$/;
	if(!g.test(page)){
		alert("页码格式不正确！");
		return;
	}else if(page > max){
		alert("此页码不存在！");
		return;
	}
	window.location.href=url;
}
</script>
</head>
<body>

<!--head-->
<?php include(DEDEMEMBER. "/templets/head.htm"); ?>

<div class="main">

<?php include(DEDEMEMBER."/templets/menu.php"); ?> 

<div class="main_right">

<div class="common-titbox">
<div class="common_title left" style="margin-bottom:0px;">作品管理</div>
<div class="common_scj right">您共有 <i><?php echo $mysc_all;?></i> 个作品，共卖出 <i><?php echo $myscdata_souchu;?></i> 次</div>
<div class="mydata-top">
 <ul class="paixu">
   <li class="<?php if($paixu=='arc.senddate' || $paixu=='') echo 'hover';?>"><a href="content_list.php?channelid=3&paixu=arc.senddate" class="<?php if($paixu=='arc.senddate' || $paixu=='') echo 'hover';?>">时间</a></li>
   <li class="<?php if($paixu=='addon.dows') echo 'hover';?>"><a href="content_list.php?channelid=3&paixu=addon.dows" class="<?php if($paixu=='addon.dows') echo 'hover';?>">下载</a></li>
   <li class="<?php if($paixu=='addon.goods') echo 'hover';?> san"><a href="content_list.php?channelid=3&paixu=addon.goods" class="<?php if($paixu=='addon.goods') echo 'hover';?>">推荐度</a></li>
  </ul>
</div>
</div>

        <div class="sc-list-nav">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><a href="content_list.php?channelid=<?php echo $channelid;?>&paixu=<?php echo $paixu;?>" class="<?php if($arcrank=='') echo 'hover';?>"><span>全部 <i>(<?php echo $mysc_all;?>)</i></span></a></td>
              <td><a href="content_list.php?channelid=<?php echo $channelid;?>&arcrank=1&paixu=<?php echo $paixu;?>" class="<?php if($arcrank=='1') echo 'hover';?>"><span>已通过 <i>(<?php echo $myscdata_ys;?>)</i></span></a></td>
              <td><a href="content_list.php?channelid=<?php echo $channelid;?>&arcrank=-1&paixu=<?php echo $paixu;?>" class="<?php if($arcrank=='-1') echo 'hover';?>"><span>审核中 <i>(<?php echo $myscdata_ws;?>)</i></span></a></td>
              <td><a href="content_list.php?channelid=<?php echo $channelid;?>&arcrank=-2&paixu=<?php echo $paixu;?>" class="<?php if($arcrank=='-2') echo 'hover';?>"><span>待修改 <i>(<?php echo $myscdata_dxg;?>)</i></span></a></td>
              <td><a href="content_list.php?channelid=<?php echo $channelid;?>&arcrank=-3&paixu=<?php echo $paixu;?>" class="<?php if($arcrank=='-3') echo 'hover';?>"><span>未通过 <i>(<?php echo $myscdata_wtg;?>)</i></span></a></td>
              <td><a href="content_list.php?channelid=<?php echo $channelid;?>&arcrank=-4&paixu=<?php echo $paixu;?>" class="<?php if($arcrank=='-4') echo 'hover';?> nav-over"><span>被投诉 <i>(<?php echo $myscdata_bts;?>)</i></span></a></td>
            </tr>
          </table>
          </div>
<ul class="wdsc_list">
{dede:datalist}
<li>
<?php
 $id = $fields['id'];
 $cid = $fields['channel'];
 if($fields['arcrank']<0 || $cfg_ml->isAdmin==1) echo "<a class='caozuo' href=javascript:editArc($id,$cid);>编辑</a>";
 ?>
 <a href="<?php echo $cfg_phpurl; ?>/view.php?aid=<?php echo $fields['id']; ?>" class="caozuo" target="_blank">查看</a>
 <?php
 $id = $fields['id'];
 if($fields['arcrank']<0 || $cfg_ml->isAdmin==1) echo "<a class='caozuo' href='javascript:delArc($id);'>删除</a>";
 ?>
<a href="<?php echo $cfg_phpurl; ?>/view.php?aid=<?php echo $fields['id']; ?>" target="_blank"><img src="<?php if($fields['litpic']=='') echo $fields['litpic']=$cfg_cmsurl.'/images/defaultpic.gif'; else echo $fields['litpic']; ?>" width="200" height="134" /></a>
<h5>
<?php if($fields['goods']=='1') echo "<span class='yctj-y'>原创</span>";?>
<?php
            if($fields['arcrank']>=0) echo "<span class='ytg-y'>已通过</span>";
            else if($fields['arcrank']==-2) echo "<span class='ytg-r'>待修改</span>";
            else if($fields['arcrank']==-3) echo "<span class='ytg-r'>未通过</span>";
            else if($fields['arcrank']==-4) echo "<span class='ytg-r'>被投诉</span>";
            else echo "<span class='ytg-h'>审核中</span>";
            ?><a href="<?php echo $cfg_phpurl; ?>/view.php?aid=<?php echo $fields['id']; ?>" target="_blank">{dede:field.title/}</a> <i><?php if($fields['arcrank'] <= -2) { ?>不通过原因：<?php echo $fields['jjyy'];?><?php } ?></i></h5>
<div class="scxx">
<p>所需金币：￥{dede:field.needmoney/}</p><p>作品编号：M{dede:field.id/}</p><p>总收藏量：{dede:field.stows/}次</p>
<p>作品人气：{dede:field.click/}次</p><p>下载次数：{dede:field.dows/}次</p><p>发布时间：{dede:field.pubdate function="MyDate('Y-m-d H:i:s',@me)"/}</p>
</div>
</li>
{/dede:datalist}
</ul>

<div class="pageList"> 
<div class="pagelistbox">{dede:pagelist listsize=5/}</div>
</div>

</div>

</div>

<!--footer-->
<?php include(DEDEMEMBER. "/templets/footer.htm"); ?>

<script>
	//左边导航
	var as = document.querySelectorAll('.left_menu a');
	var spans = document.querySelectorAll('.left_menu .icons');
	for(var i=0,len=as.length;i<len;i++){
		
		spans[i].clazz = spans[i].className;
		as[i].index = i;
		as[i].onmouseenter = mouseenterHandler;
		as[i].onmouseleave = mouseleaseHandler;
	}
	function mouseenterHandler(e){
		if(!/_h$/.test(spans[this.index].clazz)){
			spans[this.index].className = spans[this.index].clazz + '_h';
		}
	}
	function mouseleaseHandler(e){
		spans[this.index].className = spans[this.index].clazz;
	}
	
	//左右等高布局
	var main_left = document.querySelector('.main_left');
	var main_right = document.querySelector('.main_right');
	if(main_left.offsetHeight<main_right.offsetHeight){
		main_left.style.height = main_right.offsetHeight + 'px';
	}
</script>

</body>
</html>